import Mine from '../views/mine/index.vue'
import Category from '../views/category/index.vue'

const routes = [
  {
    path: '/',
    component: () => import('../views/home/index.vue'),
    meta: {
      title: '首页',
    },
  },
  {
    path: '/register',
    component: () => import('../views/register/index.vue'),
    meta: {
      title: '用户注册',
    },
  },
  {
    path: '/mine',
    component: Mine,
    meta: {
      title: '个人中心',
    },
  },
  {
    path: '/category',
    component: Category,
  },
  {
    path: '/login',
    component: () => import('../views/login/index.vue'),
  },
]

export default routes
